const path = require('path')
const webpack = require('webpack')

module.exports = {
	entry: {
		// 这里配置你的 DLL 包
		vendor: ['vue', 'vue-router', 'vuex'],
		utils: ['lodash']
	},
	output: {
		path: path.resolve(__dirname, '../public/dll'),
		filename: '[name].dll.js',
		library: '[name]_library'
	},
	plugins: [
		new webpack.DllPlugin({
			name: '[name]_library',
			path: path.join(__dirname, '../public/dll', '[name]-manifest.json')
		})
	],
	mode: 'production'
}
